package com.twxm.breed.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsNotNull;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import java.util.Date;

@Data
@Table(name = "user")
public class User {
    @IsKey
    @TableId
    @Column(comment = "用户ID")
    private String id;//唯一，用户可以修改

    @Column(comment = "用户姓名", length = 40, type = MySqlTypeConstant.VARCHAR)
    @IsNotNull
    private String name;

    @Column(comment = "用户性别",length = 4)
    private String gender;

    @Column(comment = "用户身份证号", length = 26)
    private String idCard;

    @Column(comment = "用户学历", length = 20)
    private String education;

    @Column(comment = "用户岗位")
    private String position;

    @Column(comment = "用户技能")
    private String skill;

    @Column(comment = "用户入职时间")
    private Date entryTime;

    @Column(comment = "用户照片")
    private String photo;

    public User(String userid, String username) {
        this.id = userid;
        this.name = username;
    }
}
